package no.uials.distsys;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Map;

/**
 *
 * @author Anders
 */
public interface UserService extends Remote {
    Map<String, Article> getArticles()
            throws RemoteException;
    int placeOrder(User user, Map<String, OrderLine> order)
            throws RemoteException, DistSysException;
    Map<Integer, Order> getUserOrders(String user)
            throws RemoteException;
    User getUser(String user)
            throws RemoteException, DistSysException;
}